﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model
{
    [Table("Users")]
    public partial class Users
    {
        [Key]
        public int UserId { get; set; }
        [Required]
        [MaxLength(20)]
        [Column(TypeName = "varchar(20)")]
        public string UserName { get; set; }

        [Required]
        [Column(TypeName = "varchar(50)")]
        public string Password { get; set; }

        [Required]
        [Column(TypeName = "varchar(20)")]
        public string Phone { get; set; }

        [Required]
        public int Status { get; set; }

        [Required]
        public int CreateUserId { get; set; }

        [Required]
        [Column(TypeName = "dateTime")]
        public DateTime CreateTime { get; set; }


        public int? LastUpdateUserId { get; set; }
        [Column(TypeName = "dateTime")]
        public DateTime? LastUpdateTime { get; set; }



    }
}
